package com.the475group.obd.model;

import com.the475group.obd.enums.OBDCommand;

public class OBDInfo {
	
	private OBDCommand command;
	private double value;	
	
	public OBDInfo(){
		this(null,0);
	}
	
	public OBDInfo(OBDCommand command, double value) {
		super();
		this.command = command;
		this.value = value;
	}

	public OBDCommand getCommand() {
		return command;
	}
	
	public void setCommand(OBDCommand command) {
		this.command = command;
	}
	
	public double getValue() {
		return value;
	}
	
	public void setValue(double value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return value + " " + command.getUnit();
	}
	
	
	
	
	
}
